import request from '@/utils/request'

// 查询用户收支明细总列表
export function listIncomeLog(query) {
  return request({
    url: '/system/incomeLog/list',
    method: 'get',
    params: query
  })
}

// 查询用户收支明细总详细
export function getIncomeLog(id) {
  return request({
    url: '/system/incomeLog/' + id,
    method: 'get'
  })
}

// 新增用户收支明细总
export function addIncomeLog(data) {
  return request({
    url: '/system/incomeLog',
    method: 'post',
    data: data
  })
}

// 修改用户收支明细总
export function updateIncomeLog(data) {
  return request({
    url: '/system/incomeLog',
    method: 'put',
    data: data
  })
}

// 删除用户收支明细总
export function delIncomeLog(id) {
  return request({
    url: '/system/incomeLog/' + id,
    method: 'delete'
  })
}
